/**
 * Defines the main routes in the application.
 * The routes you see here will be anchors '#/' unless specifically configured otherwise.
 */

define(['./app'], function (app) {
    'use strict';
    return app.config(function ($stateProvider,$urlRouterProvider) {

        $urlRouterProvider.otherwise('/error');

        $stateProvider
        //添加广告
        .state("advertise",{
            url:'/advertise',
            templateUrl:"app/advertise/advertise.html",
            params:{
                'operate':'save'
            }
        })
        //广告列表
        .state("advertisement",{
            url:'/advertisement',
            templateUrl:"app/advertise/advertisement.html",
            params:{
                'operate':'find'
            }
        })
        //广告内容关系列表
        .state("advertisecontentment",{
            url:'/advertisecontentment',
            templateUrl:"app/advertise/advertisecontentment.html",
            params:{
                'operate':'find'
            }
        })
        //广告内容关系添加
        .state("advertisecontent",{
            url:'/advertisecontent',
            templateUrl:"app/advertise/advertisecontent.html",
            params:{
                'operate':'save'
            }
        })
        //添加专辑
        .state("promotionproductalbum",{
            url:"/promotionproductalbum",
            templateUrl:"app/promotion/promotionproductalbum.html",
            params:{
                operate:'save'
            }
        })
        //专辑列表
        .state("promotionproductalbumment",{
            url:"/promotionproductalbumment",
            templateUrl:"app/promotion/promotionproductalbumment.html",
            params:{
                operate:'find'
            }
        })
        //专辑内容列表
        .state("promotionproductalbumcontentment",{
            url:"/promotionproductalbumcontentment",
            templateUrl:"app/promotion/promotionproductalbumcontentment.html",
            params:{
                operate:'find'
            }
        })
        //添加专辑商品内容
        .state("promotionproductalbumcontent",{
            url:"/promotionproductalbumcontent",
            templateUrl:"app/promotion/promotionproductalbumcontent.html",
            params:{
                operate:'save'
            }
        })
        //添加秒杀内容
        .state("promotionproductseckill",{
            url:"/promotionproductseckill",
            templateUrl:"app/promotion/promotionproductseckill.html",
            params:{
                operate:'save'
            }
        })
        //查询秒杀内容
        .state("promotionproductseckillment",{
            url:"/promotionproductseckillment",
            templateUrl:"app/promotion/promotionproductseckillment.html",
            params:{
                operate:'find'
            }
        })
        //添加秒杀商品内容
        .state("promotionproductseckillcontent",{
            url:"/promotionproductseckillcontent",
            templateUrl:"app/promotion/promotionproductseckillcontent.html",
            params:{
                operate:'save'
            }
        })
        //添加秒杀商品内容
        .state("promotionproductseckillcontentment",{
            url:"/promotionproductseckillcontentment",
            templateUrl:"app/promotion/promotionproductseckillcontentment.html",
            params:{
                operate:'find'
            }
        })
        //添加全平台优惠券
        .state("allplantformcoupon",{
            url:"/allplantformcoupon",
            templateUrl:"app/coupon/allplantformcoupon.html",
            params:{
                operate:'save'
            }
        })
        //查询通用优惠券
        .state("allplantformcouponment",{
            url:"/allplantformcouponment",
            templateUrl:"app/coupon/allplantformcouponment.html",
            params:{
                operate:'find'
            }
        })
        //添加指定商户优惠券
        .state("storecoupon",{
            url:"/storecoupon",
            templateUrl:"app/coupon/storecoupon.html",
            params:{
                operate:'save'
            }
        })
        //查询指定商户优惠券
        .state("storecouponment",{
            url:"/storecouponment",
            templateUrl:"app/coupon/storecouponment.html",
            params:{
                operate:'find'
            }
        })
        //添加指定品类优惠券
        .state("goodstypecoupon",{
            url:"/goodstypecoupon",
            templateUrl:"app/coupon/goodstypecoupon.html",
            params:{
                operate:'save'
            }
        })
        //查询指定品类优惠券
        .state("goodstypecouponment",{
            url:"/goodstypecouponment",
            templateUrl:"app/coupon/goodstypecouponment.html",
            params:{
                operate:'find'
            }
        })
        //添加指定货物优惠券
        .state("productcoupon",{
            url:"/productcoupon",
            templateUrl:"app/coupon/productcoupon.html",
            params:{
                operate:'save'
            }
        })
        //查询指定货物优惠券
        .state("productcouponment",{
            url:"/productcouponment",
            templateUrl:"app/coupon/productcouponment.html",
            params:{
                operate:'find'
            }
        })
        //查询全平台优惠券代码
        .state("allplantformcouponcodement",{
            url:"/allplantformcouponcodement",
            templateUrl:"app/coupon/allplantformcouponcodement.html",
            params:{
                operate:'find'
            }
        })
        //创建全平台优惠券代码
        .state("allplantformcouponcode",{
            url:"/allplantformcouponcode",
            templateUrl:"app/coupon/allplantformcouponcode.html",
            params:{
                operate:'save'
            }
        })
        //查询品类优惠券代码
        .state("goodstypecouponcodement",{
            url:"/goodstypecouponcodement",
            templateUrl:"app/coupon/goodstypecouponcodement.html",
            params:{
                operate:'find'
            }
        })
        //创建品类优惠券代码
        .state("goodstypecouponcode",{
            url:"/goodstypecouponcode",
            templateUrl:"app/coupon/goodstypecouponcode.html",
            params:{
                operate:'save'
            }
        })
        //查询店铺优惠券代码
        .state("storecouponcodement",{
            url:"/storecouponcodement",
            templateUrl:"app/coupon/storecouponcodement.html",
            params:{
                operate:'find'
            }
        })
        //创建店铺优惠券代码
        .state("storecouponcode",{
            url:"/storecouponcode",
            templateUrl:"app/coupon/storecouponcode.html",
            params:{
                operate:'save'
            }
        })
        //查询货物优惠券代码
        .state("productcouponcodement",{
            url:"/productcouponcodement",
            templateUrl:"app/coupon/productcouponcodement.html",
            params:{
                operate:'find'
            }
        })
        //创建货物优惠券代码
        .state("productcouponcode",{
            url:"/productcouponcode",
            templateUrl:"app/coupon/productcouponcode.html",
            params:{
                operate:'save'
            }
        })
    });
});
